<template>
	<view>
		<u-navbar :border-bottom='false' back-icon-size='48' title="账单详情"></u-navbar>
		<view class="content">
			<view class="billBox">
				<view class="icon">
					<image src="../../../../static/imgs/dingdanzx.png" mode=""></image>
				</view>
				<view class="name">
					{{info.change_msg}}
				</view>
				<view class="num">
					+ {{info.commission}}
				</view>
				<view class="lable">
					<view class="tit">
						当前状态
					</view>
					<view class="value">
						成功
					</view>
				</view>
				<view class="lable">
					<view class="tit">
						到账时间
					</view>
					<view class="value">
						{{info.create_time}}
					</view>
				</view>
				<view class="lable">
					<view class="tit">
						交易单号
					</view>
					<view class="value">
						{{info.order_sn}}
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				info: {}
			}
		},
		onShow() {
			this.info = uni.getStorageSync('bill')
		}
	}
</script>

<style lang="scss" scoped>
	.content {
		padding: 20rpx;

		.billBox {
			width: 710rpx;
			height: 636rpx;
			background: #FFFFFF;
			border-radius: 16rpx;
			padding-top: 62rpx;

			.icon {
				width: 88rpx;
				height: 88rpx;
				margin: 0 auto;

				image {
					width: 100%;
					height: 100%;
				}
			}

			.name {
				margin-top: 28rpx;
				width: 100%;
				text-align: center;
				font-size: 32rpx;
				font-family: PingFang SC;
				font-weight: 400;
				color: #333333;
			}

			.num {
				margin-top: 20rpx;
				width: 100%;
				text-align: center;
				font-size: 44rpx;
				font-family: Arial;
				font-weight: 400;
				color: #333333;
				margin-bottom: 80rpx;
			}

			.lable {
				width: 100%;
				height: 80rpx;
				display: flex;
				align-items: center;
				justify-content: space-between;
				padding: 0 20rpx;

				.tit {
					font-size: 28rpx;
					font-family: PingFang SC;
					font-weight: 400;
					color: #666666;
				}

				.value {
					font-size: 28rpx;
					font-family: PingFang SC;
					font-weight: 400;
					color: #333333;
				}
			}
		}
	}
</style>
